<?php
/**
 * Created by PhpStorm.
 * User: Cao
 * Date: 07/10/2014
 * Time: 17:00
 */
class slide_model extends CI_Model
{
    protected $_table="mock_products";
    public function __construct()
    {
        parent::__construct();
    }
    public function getCurSlide(){
        $this->db->where("product_slide",1);
        return $this->db->get($this->_table)->result_array();
    }
    public function getHideSilde(){
        $this->db->where("product_slide",0);
        return $this->db->get($this->_table)->result_array();
    }

}